<#include "common/header2.ftl" />
</head>

<body data-type="generalComponents">

<#include "common/page_top2.ftl" />

<div class="tpl-page-container tpl-page-header-fixed">

    <#include "common/menu.ftl" />

    <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                Amaze UI 文字列表
            </div>
            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li>
                <li><a href="#"> 内容管理 </a></li>
                <li class="am-active">分类列表</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span> 列表
                    </div>
                </div>
                <div class="tpl-block">
                    <div class="am-g">
                        <div class="am-u-sm-12 am-u-md-6">
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-xs">
                                    <a href="/admin/category/add" class="am-btn am-btn-default am-btn-success"><span class="am-icon-plus"></span> 新增</a>
                                    <button type="button" class="am-btn am-btn-default am-btn-danger"><span class="am-icon-trash-o"></span> 删除</button>
                                </div>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-3">
                            <div class="am-form-group" >
                                <input type="text" style="width: 49%;float: left" class="am-form-field tpl-form-no-bg" placeholder="起始时间" data-am-datepicker="" readonly/>
                                <input type="text" style="width: 50%;margin-left: 1%;float: left" class="am-form-field tpl-form-no-bg" placeholder="截止时间" data-am-datepicker="" readonly/>
                            </div>
                        </div>
                        <div class="am-u-sm-12 am-u-md-3">
                            <div class="am-input-group am-input-group-sm">
                                <input type="text" class="am-form-field">
                                <span class="am-input-group-btn">
                                <button class="am-btn  am-btn-default am-btn-success tpl-am-btn-success am-icon-search" type="button"></button>
                            </span>
                            </div>
                        </div>
                    </div>
                    <div class="am-g">
                        <div class="am-u-sm-12">
                            <form class="am-form">
                                <table class="am-table am-table-striped am-table-hover table-main">
                                    <thead>
                                    <tr>
                                        <th class="table-check"><input type="checkbox" class="tpl-table-fz-check"></th>
                                        <th class="table-id">ID</th>
                                        <th class="table-title">标题</th>
                                        <th class="table-author am-hide-sm-only">上级</th>
                                        <th class="table-date am-hide-sm-only">添加日期</th>
                                        <th class="table-set">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <#list pager.list as category >
                                    <tr>
                                        <td><input type="checkbox"></td>
                                        <td>${category.id}</td>
                                        <td><a href="#">${category.title}</a></td>
                                        <td class="am-hide-sm-only">测试1号</td>
                                        <td class="am-hide-sm-only">2014年9月4日 7:28:47</td>
                                        <td>
                                            <div class="am-btn-toolbar">
                                                <div class="am-btn-group am-btn-group-xs">
                                                    <a href="/admin/category/edit?id=${category.id}" class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span> 编辑</a>
                                                    <a href="/admin/category/add?id=${category.id}" class="am-btn am-btn-default am-btn-xs am-hide-sm-only"><span class="am-icon-plus"></span> 添加子分类 </a>
                                                    <a href="javascript:if(confirm('确定要删除吗?')){ location.href='/admin/category/delete?id=${category.id}' };" class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span> 删除</a>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    </#list>
                                    </tbody>
                                </table>
                                <div class="am-cf">

                                    <div class="am-fr">
                                        <ul class="am-pagination tpl-pagination">
                                            <li class="am-disabled"><a href="#">«</a></li>
                                            <li class="am-active"><a href="#">1</a></li>
                                            <li><a href="#">2</a></li>
                                            <li><a href="#">3</a></li>
                                            <li><a href="#">4</a></li>
                                            <li><a href="#">5</a></li>
                                            <li><a href="#">»</a></li>
                                        </ul>
                                    </div>
                                </div>
                                <hr>

                            </form>
                        </div>

                    </div>
                </div>
                <div class="tpl-alert"></div>
            </div>

        </div>
</div>

<script src="/resource/assets/js/jquery.min.js"></script>
<script src="/resource/assets/js/amazeui.min.js"></script>
<script src="/resource/assets/js/app.js"></script>
</body>

</html>